<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="conversation.css" rel="STYLESHEET" type="text/css">
<title>Sign In</title>
</head>
<body>
<h2>Please sign in:</h2>
<form:form>
<!--  form:errors path="userName.invalid" cssClass="error" / -->
<spring:hasBindErrors name="command"> 
  <c:forEach var="error" items="${errors.allErrors}">
    <font color="red">
        <c:out value="${error.defaultMessage}" escapeXml="false" />
    </font>
    <p />
  </c:forEach>
</spring:hasBindErrors>
 <table>
	<tr>
		<th align="left">User name:</th>
		<td><form:input path="userName" size="20" maxlength="40" /></td>
  </tr>
  <tr>
		<th align="left">Password</th>
		<td><form:password path="password" size="20" maxlength="40" /></td>
	</tr>
	<tr>
	  <td colspan="2">
      <p align="center"><input name="signin" value="Sign In" type="submit">
    </td>
  </tr>
</table> 
	
</form:form>
</body>
</html>

